using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevPlaninspectionpointTList, table list:dev_planinspectionpoint_t 
	/// </summary>
	internal class DevPlaninspectionpointTList : BaseWritableEntities<DevPlaninspectionpointT>, IDevPlaninspectionpointTList
	{
		private DevPlaninspectionpointTQueryDAO _queryDAO;
		private DevPlaninspectionpointTWritingDAO _writeDAO;

		public DevPlaninspectionpointTList(DevPlaninspectionpointTQueryDAO queryDao, DevPlaninspectionpointTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevPlaninspectionpointT,table items:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlaninspectionpointT> GetDevPlaninspectionpointTAllItems()
		{
			return _queryDAO.GetDevPlaninspectionpointTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevPlaninspectionpointT,table items:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlaninspectionpointT> GetDevPlaninspectionpointTItemsById(int id)
		{
			return _queryDAO.GetDevPlaninspectionpointTItemsById(id);
		}

		/// <summary>
		/// 根据planId，获取所有DevPlaninspectionpointT,table items:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlaninspectionpointT> GetDevPlaninspectionpointTItemsByPlanId(int planId)
		{
			return _queryDAO.GetDevPlaninspectionpointTItemsByPlanId(planId);
		}

		/// <summary>
		/// 根据inspectionpointId，获取所有DevPlaninspectionpointT,table items:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlaninspectionpointT> GetDevPlaninspectionpointTItemsByInspectionpointId(int inspectionpointId)
		{
			return _queryDAO.GetDevPlaninspectionpointTItemsByInspectionpointId(inspectionpointId);
		}

		/// <summary>
		/// 增加一行DevPlaninspectionpointT,table item:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevPlaninspectionpointT(DevPlaninspectionpointT item)
		{
			return this._writeDAO.AddDevPlaninspectionpointT(item);
		}

		/// <summary>
		/// 增加多行DevPlaninspectionpointT,table items:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevPlaninspectionpointTs(DevPlaninspectionpointT[] items)
		{
			return this._writeDAO.AddDevPlaninspectionpointTs(items);
		}

		/// <summary>
		/// 更新一行DevPlaninspectionpointT,table item:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevPlaninspectionpointT(DevPlaninspectionpointT item)
		{
			return this._writeDAO.UpdateDevPlaninspectionpointT(item);
		}

		/// <summary>
		///  更新多行DevPlaninspectionpointT,table items:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevPlaninspectionpointTs(DevPlaninspectionpointT[] items)
		{
			return this._writeDAO.UpdateDevPlaninspectionpointTs(items);
		}

		/// <summary>
		/// 删除一行DevPlaninspectionpointT,table item:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevPlaninspectionpointT(DevPlaninspectionpointT item)
		{
			return this._writeDAO.DeleteDevPlaninspectionpointT(item);
		}

		/// <summary>
		///  删除多行DevPlaninspectionpointT,table items:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevPlaninspectionpointTs(DevPlaninspectionpointT[] items)
		{
			return this._writeDAO.DeleteDevPlaninspectionpointTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevPlaninspectionpointT,table entity:dev_planinspectionpoint_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevPlaninspectionpointTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevPlaninspectionpointTByIds(ids);
		}

	}
}
